<?php defined('IN_PHPCMS') or exit('Access Denied'); ?><?php include template('phpcms','header'); ?>
<div id="main">
  <div id="position"><a href="">首页</a><a href="<?php echo $M['url'];?>">投票</a></div>
  <div id="content">
    <ul class="text_list_f14">
  <?php $ARRAY = get("select subjectid, subject,addtime from phpcms_vote_subject where parentid=0 order by listorder DESC,subjectid DESC", 20, $page, "", "");$DATA=$ARRAY['data'];$total=$ARRAY['total'];$count=$ARRAY['count'];$pages=$ARRAY['pages'];unset($ARRAY);foreach($DATA AS $n=>$r){$n++;?>
        <li>·<a href="<?php echo $MODULE['vote']['url'];?>vote.php?voteid=<?php echo $r['subjectid'];?>"><?php if(!$title) { ?> <?php echo $r['subject'];?> <?php } else { ?> <?php echo $r['title'];?> <?php } ?></a> [<?php echo date('Y-m-d', $r['addtime']);?>]</li>
  <?php } unset($DATA); ?>
    </ul>
<div id="pages"><?php echo $pages;?></div>
    <div class="clear"></div>
  </div>
</div>
<?php include template('phpcms','footer'); ?>